package com.skjanyou.applicationcase.service.impl;

import java.util.List;

import com.skjanyou.applicationcase.bean.Menu;
import com.skjanyou.applicationcase.mapper.MenuMapper;
import com.skjanyou.applicationcase.service.MenuService;
import com.skjanyou.mvc.anno.Mvc.Autowired;
import com.skjanyou.mvc.anno.Mvc.Service;

@Service
public class MenuServiceImpl implements MenuService {

	@Autowired
	private MenuMapper menuMapper;
	
	public List<Menu> selectUserMenuList(String userId) {
		return menuMapper.selectUserMenuList(userId);
	}

	@Override
	public void insertMenu(Menu menu) {
		menuMapper.insert(menu);
	}

}
